<html>
<head><meta charset="utf-8"><title>formatting takes a while · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/formatting.20takes.20a.20while.html">formatting takes a while</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="173919218"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/formatting%20takes%20a%20while/near/173919218" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Molodetskikh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/formatting.20takes.20a.20while.html#173919218">(Aug 22 2019 at 20:41)</a>:</h4>
<p>Hello! I'm using <code>rust-analyzer</code> with <code>LanguageClient-neovim</code>, and I noticed that <code>textDocument/formatting</code> takes a really long while, considerably longer than running <code>cargo fmt</code> in a terminal on the same project. Is this an issue of <code>rust-analyzer</code> that I should report?</p>



<a name="173919312"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/formatting%20takes%20a%20while/near/173919312" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/formatting.20takes.20a.20while.html#173919312">(Aug 22 2019 at 20:42)</a>:</h4>
<p>It makes sense to report it yeah, but I don't have any reasonable hypothesis as to what's might be wrong. We just call <code>rustfmt</code> process for reformatting</p>



<a name="173920339"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/formatting%20takes%20a%20while/near/173920339" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Ivan Molodetskikh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/formatting.20takes.20a.20while.html#173920339">(Aug 22 2019 at 20:57)</a>:</h4>
<p>Made an issue here: <a href="https://github.com/rust-analyzer/rust-analyzer/issues/1726" target="_blank" title="https://github.com/rust-analyzer/rust-analyzer/issues/1726">https://github.com/rust-analyzer/rust-analyzer/issues/1726</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>